package com.sxbbc.common.core.mapper.jz;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.sxbbc.common.core.entity.jz.CRechageDetail;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sxbbc.common.core.utils.BasePage;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * <p>
 * 油卡、话费充值明细表 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2019-10-24
 */
public interface CRechageDetailMapper extends BaseMapper<CRechageDetail> {

    /**
     * 查询用户当天已充值的金额
     * @param cid
     * @return
     */
    BigDecimal queryTodaySumRecharge(Integer cid);

    /**
     * 充值明细
     * @param page
     * @param details
     * @return
     */
    IPage<CRechageDetail> showRechargeMoneyList(BasePage<CRechageDetail> page,@Param("param") CRechageDetail details);
}
